FROM mysql:8.0.31

MAINTAINER zeng(2679652842@qq.com)

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY ./nacos.sql /docker-entrypoint-initdb.d/

COPY ./elsfs-admin.sql /docker-entrypoint-initdb.d/

RUN chown -R mysql:mysql /docker-entrypoint-initdb.d

EXPOSE 3306

CMD ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_bin","--bind-address=0.0.0.0"]
